<?php

class Application_Form_Employe extends Zend_Form
{

	public function init()
	{
		$this->setName('employe');

		$id = new Zend_Form_Element_Hidden('id');
		$id->addFilter('Int');

		$civilite = new Zend_Form_Element_Select('civilite') ;
		$civilite->setLabel('Civilite')
		->addMultiOptions(array('0' => 'Selectionnez...','Mr' => 'Monsieur', 'Mme' => 'Madame', 'Mlle' => 'Mademoiselle'));

		$nom = new Zend_Form_Element_Text('nom');
		$nom->setLabel('Nom')
		-> setRequired(true);
		
		$prenom = new Zend_Form_Element_Text('prenom');
		$prenom->setLabel('Prenom')
		-> setRequired(true);
		
		$fonction = new Zend_Form_Element_Text('fonction');
		$fonction->setLabel('Fonction occupee')
		-> setRequired(true);

		$telephone = new Zend_Form_Element_Text('telephone');
		$telephone->setLabel('Telephone')
		-> setRequired(true);
		
		$email = new Zend_Form_Element_Text('email');
		$email->setLabel('Email')
		-> setRequired(true);

		$situation = new Zend_Form_Element_Radio('situation');
        $situation->setLabel('situation:')
            ->addMultiOptions(array(
                    'employed' => 'Salarié',
                    'unemployed' => "N'est plus salarié" 
                        ))
            ->setSeparator(' ');    

		$this->addElements(array($id,$civilite,$nom,$prenom,$fonction,$telephone,$email,$situation));

	}


}

